SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 44815: Dynamic prompt dependency filter using "CONTAINS" or "LIKE" operator returns incorrect values

DetailsAboutRate It

A dynamic prompt dependency may return incorrect results if the "CONTAINS" or "LIKE" operator has been used in the dependency filter. Instead of returning all values for the dependent prompt variable that contain the specific string or are like the pattern of characters, the filter only returns those values that are equal to the dependency condition.

The problem is caused by trailing blanks that are added to the "CONTAINS" or "LIKE" string in the WHERE clause that is automatically executed in an SQL step behind the scenes to produce the dependent list of parameter values. For example, the following WHERE clause is incorrectly used to filter the dependent values:

 WHERE  ( ORIG_VAR CONTAINS "ABCDEFG       " ) <===TRAILING BLANKS

The correct WHERE clause should be:

 WHERE  ( ORIG_VAR CONTAINS "ABCDEFG" )  <===NO TRAILING BLANKS

There is currently no circumvention for this problem.



Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemSAS Integration Technologiesz/OS9.2 TS2M09.3 TS1M2
Microsoft® Windows® for 64-Bit Itanium-based Systems9.2 TS2M0
Microsoft Windows Server 2003 Datacenter 64-bit Edition9.2 TS2M0
Microsoft Windows Server 2003 Enterprise 64-bit Edition9.2 TS2M0
Microsoft Windows XP 64-bit Edition9.2 TS2M0
Microsoft® Windows® for x649.2 TS2M0
Microsoft Windows Server 2003 Datacenter Edition9.2 TS2M0
Microsoft Windows Server 2003 Enterprise Edition9.2 TS2M0
Microsoft Windows Server 2003 Standard Edition9.2 TS2M0
Microsoft Windows Server 2003 for x649.2 TS2M0
Microsoft Windows Server 2008 for x649.2 TS2M0
Microsoft Windows XP Professional9.2 TS2M0
Windows Vista9.2 TS2M0
Windows Vista for x649.2 TS2M0
64-bit Enabled AIX9.2 TS2M09.3 TS1M2
64-bit Enabled HP-UX9.2 TS2M09.3 TS1M2
64-bit Enabled Solaris9.2 TS2M09.3 TS1M2
HP-UX IPF9.2 TS2M09.3 TS1M2
Linux9.2 TS2M09.3 TS1M2
Linux for x649.2 TS2M09.3 TS1M2
OpenVMS on HP Integrity9.2 TS2M09.3 TS1M2
Solaris for x649.2 TS2M09.3 TS1M2
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.